<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/templates/template.xhtml">
	<ui:define name="content">

		<script type="text/javascript" src="/neppo_social/recursos/js/jquery/jquery-1.7.1.js"></script>

		<script type="text/javascript">
		$(document).ready(function(){
			$("#carregarAmigos").click(function(){
			});
		});

		
		
			function load(a) {
				var noSelecionado = document.getElementById("form:idNoSelecionado");
				noSelecionado.value = a;
				$.ajax({
					url : "http://localhost:8080/provaconceito/conf",
					type: "GET",
					data : {idNo : a},
					success: function(val){
						arq.show();
					}
				});
			}
		</script>

		<h:form id="form">
			<p:tree value="#{arvore.root}" var="node" dynamic="true" cache="true"
				id="tree" style="border: 0px; background-color: transparent;" >
				<p:treeNode>
					<h:outputText value="#{node}" />
				</p:treeNode>
			</p:tree>
			<p:dialog id="arquivo" header="Depositar Arquivo" widgetVar="arq">
				<p:fileUpload label="Selecione os Arquivos"
					description="Selecione os arquivoss"
					fileUploadListener="#{arvore.fileUploadAction}"
					auto="true" style="font-size:17px">
					<b> <h:outputLabel
							value="Arquivos enviado para DETALHAMENTO JURIDICO." /> </b>
					<h:inputHidden id="idNoSelecionado"
						value="#{arvore.idNoSelecionado}" />
				</p:fileUpload>
				<p:commandButton action="#{arvore.add}" value="Enviar"></p:commandButton>
			</p:dialog>
		</h:form>
	</ui:define>
</ui:composition>
</html>